#!/usr/bin/env python


import sys
import socket

s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
print 'connecting to ad_server ...'
s.connect(('localhost', 6000))
if not s:
	print 'cannot connect'
	sys.exit(1)


ad = s.recv(128)
print ad

print 'terminating ...'
